 package com.lj.mcore.entity;

  import com.lj.mcore.domain.IdEntity;
 import jakarta.persistence.*;
 import java.util.ArrayList;
 import java.util.List;


 @Entity
 @Table(name="shopping_homepage")
 public class HomePage extends IdEntity
 {
 
   @OneToOne(fetch=FetchType.LAZY)
   private User owner;
 
   @OneToMany(mappedBy="homepage", cascade={CascadeType.REMOVE})
   private List<Visit> customers = new ArrayList();
 
   public User getOwner() {
     return this.owner;
   }
 
   public void setOwner(User owner) {
     this.owner = owner;
   }
 
   public List<Visit> getCustomers() {
     return this.customers;
   }
 
   public void setCustomers(List<Visit> customers) {
     this.customers = customers;
   }
 }



 
 